<template>
  <div>
    <h4>Hello</h4>
    
    <input v-focus />

    <button v-copy="name">点我,拷贝{{ name }}</button>
    <button v-copy="'里斯'">点我,拷贝里斯</button>

    <button @click="name += '~'">修改name</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: '张三'
    }
  }
}
</script>